//
//  FilterBrandHeaderCell.swift
//  koolcar
//
//  Created by xiantian on 2023/11/28.
//

import UIKit

class FilterBrandCharHeaderCell: UITableViewHeaderFooterView {
    var titleLab: UILabel!
    var bkgView: UIView = {
        let tempView = UIView()
        tempView.backgroundColor = Theme.viewBkgGrayColor
        return tempView
    }()
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        self.backgroundColor = Theme.viewBkgGrayColor
        self.contentView.addSubview(self.bkgView)
        
        titleLab = UILabel()
        titleLab.textColor = Theme.titleLabColor
        titleLab.backgroundColor = UIColor.clear
        titleLab.font = UIFont.init(name: Theme.PingFangSCMedium, size: 14)
        titleLab.numberOfLines = 1
        titleLab.lineBreakMode = .byTruncatingTail
        titleLab.textAlignment = .left
        bkgView.addSubview(titleLab)
        
        bkgView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        titleLab.snp.makeConstraints { make in
            make.left.equalTo(14)
            make.top.bottom.equalTo(0)
            make.right.equalTo(-40)
        }
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
